import request from '@/utils/request'
import { ALL } from './baseUrl'
// export const GetWholeDistribution = params => GET('/all/api/HomePage/GetWholeDistribution' params).then(res => res.data)
export function GetWholeDistribution(params) {
  return request({
    url: '/all/api/HomePage/GetWholeDistribution',
    method: 'get',
    params: params
  })
}
// 首页报警记录
// export const SafetyWarningService = params => GET('/all/api/services/app/SafetyWarningService/GetAll' params).then(res => res.data)
export function SafetyWarningService(params) {
  return request({
    url: '/all/api/services/app/SafetyWarningService/GetAll',
    method: 'get',
    params: params
  })
}
// 首页三轴数据
// export const FetchMaxThreeAxisValue = params => GET('/all/api/services/app/LatestThreeAxisValueServiceImpl/FetchMaxThreeAxisValue' params).then(res => res.data)
export function FetchMaxThreeAxisValue(params) {
  return request({
    url: '/all/api/services/app/LatestThreeAxisValueServiceImpl/FetchMaxThreeAxisValue',
    method: 'get',
    params: params
  })
}

// 首页应力数据
// export const FetchLatestStrainGauge = params => GET('/all/api/services/app/StrainGaugeLatestServiceImpl/FetchLatestStrainGauge?count=4' params).then(res => res.data)
export function FetchLatestStrainGauge(params) {
  return request({
    url: '/all/api/services/app/StrainGaugeLatestServiceImpl/FetchLatestStrainGauge?count=4',
    method: 'get',
    params: params
  })
}
// 首页应力数据  
// export const GetWindSpeedWarning = params => GET('/all/api/services/app/WindSpeedWarningSettingService/GetAll' params).then(res => res.data)
export function GetWindSpeedWarning(params) {
  return request({
    url: '/all/api/services/app/WindSpeedWarningSettingService/GetAll',
    method: 'get',
    params: params
  })
}

// 首页风速风向
// export const FetchLatestWindValue = params => GET('/all/api/services/app/LatestCMSClazzService/FetchLatestValue' params).then(res => res.data)
export function FetchLatestWindValue(params) {
  return request({
    url: '/all/api/services/app/LatestCMSClazzService/FetchLatestValue',
    method: 'get',
    params: params
  })
}

// 首页温度振动
// export const FetchLatestValue = params => GET('/all/api/services/app/LatestDPMotorServiceImpl/FetchLatestValue' params).then(res => res.data)
export function FetchLatestValue(params) {
  return request({
    url: '/all/api/services/app/LatestDPMotorServiceImpl/FetchLatestValue',
    method: 'get',
    params: params
  })
}

// 三维模型应力报警
// export const FetchLatestStrainGauges = params => GET('/all/api/services/app/StrainGaugeLatestServiceImpl/FetchLatestStrainGauges' params).then(res => res.data)
export function FetchLatestStrainGauges(params) {
  return request({
    url: '/all/api/services/app/StrainGaugeLatestServiceImpl/FetchLatestStrainGauges',
    method: 'get',
    params: params
  })
}

// 首页运动状态分析
// export const GetBarWheelMachineStaticWarning = params => GET('/all/api/services/app/BarWheelMachineWorkStatisticsService/GetBarWheelMachineStaticWarning' params).then(res => res.data)
export function GetBarWheelMachineStaticWarning(params?) {
  return request({
    url: '/all/api/services/app/BarWheelMachineWorkStatisticsService/GetBarWheelMachineStaticWarning',
    method: 'get',
    params: params
  })
}

// 首页报警最多
// export const GetMostAlarmsDevice = params => GET('/all/api/services/app/MostAlarmsDeviceService/GetAll' params).then(res => res.data)
export function GetMostAlarmsDevice(params) {
  return request({
    url: '/all/api/services/app/MostAlarmsDeviceService/GetAll',
    method: 'get',
    params: params
  })
}